import _ from 'lodash';
import styles from './style.css';

/**
 *  * ceshi
 * @return {component}
 */
function component() {
  let element = document.createElement('div');
  let btn = document.createElement('button');

  // Lodash, currently included via a script, is required for this line to work
  element.innerHTML = _.join(['Hello', 'webpack'], ' ');
  element.classList.add(styles.hello);

  btn.onclick = (e) => import('./print.js').then((module)=>{
    module.default();
  });
  btn.innerHTML = 'Click me hurry';
  console.log(styles);
  element.appendChild(btn);

  return element;
}

document.body.appendChild(component());
